#include <log4cplus/logger.h>
#include <log4cplus/configurator.h>
#include <iomanip>

#define LOGENABLE 1

#ifdef LOGENABLE
#define HTTPINFO(x) LOG4CPLUS_INFO(l_http, x)
#define HTTPERROR(x) LOG4CPLUS_ERROR(l_http, x)
#define HTTPFATAL(x) LOG4CPLUS_FATAL(l_http, x)
#define HTTPWARN(x) LOG4CPLUS_WARN(l_http, x)
#define HTTPDEBUG(x) LOG4CPLUS_DEBUG(l_http, x)
#else
#define HTTPINFO(x) 
#define HTTPERROR(x)
#define HTTPFATAL(x) 
#define HTTPWARN(x) 
#define HTTPDEBUG(x) 
#endif

extern log4cplus::Logger l_http;

void InitHttpLog();